<%if get_user_type == '0'%><%= link_to "收藏书签 hg3000.cn",:controller => 'wap', :action => 'mark',:return_id => 1,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num %><%="<br/>"%><%end%>
<% ad = get_col_ads %>
<% unless ad.nil? %>
  <%= link_to ad.name,:controller => 'col', :action => 'show_more',:ad => ad.id,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:sid=>my_sid,:cn=>my_cn %><br/>
<% end %>
<%= link_to "热辣排行",:controller => 'col', :action => 'rank',:return_id => 2,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num %><%= "|"%><%= link_to "最新出炉",:controller => 'col', :action => 'hot',:return_id => 1,:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>
<br/>
<% @channels.each do |channel| %>
  <%= "【"%><%=h channel.name%><%="】" %>
  <% x_c = 0 %>
  <% get_sections(channel).each do |section|  %>
    <% if section.x == x_c %>
      <% x_c = section.x %>
    <% else %>
      <%=  "<br/>" %>
      <% x_c = section.x %>
    <% end %>
    <% if section.is_ad? %>
      <%= link_to section.name,:controller => 'col', :action => 'ad',:id => section.id,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>
    <% else %>
      <% @res = get_section_res(section.id)%>
      <%= link_to section.name,:controller => 'col', :action => 'show',:id => section.id,:sid=>my_sid,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>
    <% end %>
  <% end %>
  <%=  "<br/>" %>
<% end %>
<%=h "【免费搜索】"%><%=  "<br/>" %>
<input type='text' size='6' name='sea' value='<%= @search %>' />
<anchor>
  站内搜索<go method='get' href='/col/search/'>
    <postfield name='search' value='$(sea)'/>
    <postfield name='sid' value='<%=my_sid%>'/>
    <postfield name='page_for' value='<%=@page_for%>'/>
    <postfield name='go_page' value='<%=@go_page%>'/>
    <postfield name='img_style' value='<%=@img_style%>'/>
    <postfield name='pp_style' value='<%=@pp_style%>'/>
    <postfield name='pp_num' value='<%=@pp_num%>'/>
    <postfield name='cn' value='<%=my_cn%>'/>
  </go>
</anchor>
<%= link_to ".更多",:controller => 'col', :action => 'search_more',:sid=>my_sid,:page_for => @page_for,:img_style => @img_style,:pp_style => @pp_style,:pp_num =>@pp_num,:cn=>my_cn %>

